package com.itheima;

public abstract class Person {
    /* 教练员：
​              属性：员工编号、姓名、性别Gender、年龄
​              行为：吃饭(吃工作餐)
​       运动员：
​              属性：学员编号、姓名、性别、年龄、所在班级
​              行为：吃饭(吃营养餐)*/
    private String Id;
    private String name;
    private String Gender;
    private int age;
    public abstract void eat();

    public Person() {
    }

    public Person(String id, String name, String gender, int age) {
        Id = id;
        this.name = name;
        Gender = gender;
        this.age = age;
    }

    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return Gender;
    }

    public void setGender(String gender) {
        Gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
